package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 商品预警信息表
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-23
 */
@TableName("product_warning_info")
public class ProductWarningInfo implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 厂家或者门店id
     */
    @TableField("org_id")
    private Long orgId;

    /**
     * 厂家或门店名称
     */
    @TableField("org_name")
    private String orgName;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 分店id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 计件单位
     */
    @TableField("count_type")
    private String countType;

    /**
     * 最低预警值
     */
    @TableField("less_warning_value")
    private Integer lessWarningValue;

    /**
     * 发货数量
     */
    @TableField("send_amount")
    private Integer sendAmount;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 用户类型 (supplier  shop)
     */
    @TableField("type")
    private String type;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人id
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 默认为0,1为删除
     */
    @TableField("is_delete")
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getCountType() {
        return countType;
    }

    public void setCountType(String countType) {
        this.countType = countType;
    }

    public Integer getLessWarningValue() {
        return lessWarningValue;
    }

    public void setLessWarningValue(Integer lessWarningValue) {
        this.lessWarningValue = lessWarningValue;
    }

    public Integer getSendAmount() {
        return sendAmount;
    }

    public void setSendAmount(Integer sendAmount) {
        this.sendAmount = sendAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取 type
     *
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置 type
     *
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "ProductWarningInfo{" +
        "id=" + id +
        ", orgId=" + orgId +
        ", orgName=" + orgName +
        ", productId=" + productId +
        ", productName=" + productName +
        ", shopId=" + shopId +
        ", countType=" + countType +
        ", lessWarningValue=" + lessWarningValue +
        ", sendAmount=" + sendAmount +
        ", remark=" + remark +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", isDelete=" + isDelete +
        ", type=" + type +
        "}";
    }
}
